<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var x = 0
      var y = 0
      var z = 0
      for (i = 100; i <= 999; i++) {
        x = parseInt(i / 100)
        y = parseInt((i % 100) / 10)
        z = i % 10
        if (x * x * x + y * y * y + z * z * z == i) {
            console.log(i);
        }
      }
    </script>
  </body>
</html>
